package cn.hwadee.muying.entity;

import java.sql.Timestamp;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.activerecord.Model;
import cn.hwadee.muying.commons.base.BaseModel;
import com.fasterxml.jackson.annotation.JsonFormat;

/**
 * <p>
 * 收款情况
 * </p>
 *
 * @author Mankind
 * @since 2018-08-06
 */
public class Receipt extends BaseModel {

    private static final long serialVersionUID = 1L;

    /**
     * 所属机构id
     */
    @TableField("org_id")
        
    private Long orgId;
    /**
     * 销售人员id
     */
    @TableField("seller_id")
        
    private Long sellerId;

    //销售人员姓名
    @TableField(exist = false)
    private String sellerName;
    /**
     * 服务合同id
     */
    @TableField("contract_id")
        
    private Long contractId;

    //客户姓名
    @TableField(exist=false)
    private String clientName;

    /**
     * 收款时间
     */
    @JsonFormat(pattern="yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    @TableField("receipt_date")
        
    private Timestamp receiptDate;
    /**
     * 合同金额
     */
    @TableField("contract_money")
        
    private Double contractMoney;
    /**
     * 收款金额
     */
    @TableField("receipt_money")
        
    private Double receiptMoney;
    /**
     * 尾款金额
     */
    @TableField("final_payment")
        
    private Double finalPayment;

    public String getSellerName() {
        return sellerName;
    }

    public void setSellerName(String sellerName) {
        this.sellerName = sellerName;
    }

    public String getClientName() { return clientName; }

    public void setClientName(String clientName) { this.clientName = clientName; }

    public Long getOrgId() {
        return orgId;
    }

    public void setOrgId(Long orgId) {
        this.orgId = orgId;
    }

    public Long getSellerId() {
        return sellerId;
    }

    public void setSellerId(Long sellerId) {
        this.sellerId = sellerId;
    }

    public Long getContractId() {
        return contractId;
    }

    public void setContractId(Long contractId) {
        this.contractId = contractId;
    }


    public Timestamp getReceiptDate() {
        return receiptDate;
    }

    public void setReceiptDate(Timestamp receiptDate) {
        this.receiptDate = receiptDate;
    }

    public Double getContractMoney() {
        return contractMoney;
    }

    public void setContractMoney(Double contractMoney) {
        this.contractMoney = contractMoney;
    }

    public Double getReceiptMoney() {
        return receiptMoney;
    }

    public void setReceiptMoney(Double receiptMoney) {
        this.receiptMoney = receiptMoney;
    }

    public Double getFinalPayment() {
        return finalPayment;
    }

    public void setFinalPayment(Double finalPayment) {
        this.finalPayment = finalPayment;
    }

    public static final String ORG_ID = "org_id";

    public static final String SELLER_ID = "seller_id";

    public static final String CONTRACT_ID = "contract_id";

    public static final String CLIENT_ID = "client_id";

    public static final String RECEIPT_DATE = "receipt_date";

    public static final String CONTRACT_MONEY = "contract_money";

    public static final String RECEIPT_MONEY = "receipt_money";

    public static final String FINAL_PAYMENT = "final_payment";

    @Override
    public String toString() {
        return "Receipt{" +
                ", orgId=" + orgId +
                ", sellerId=" + sellerId +
                ", contractId=" + contractId +
                ", receiptDate=" + receiptDate +
                ", contractMoney=" + contractMoney +
                ", receiptMoney=" + receiptMoney +
                ", finalPayment=" + finalPayment +
        "}";
    }
}
